package cn.shu.controller;

import cn.shu.util.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by 76062 on 2017/10/10.
 */

@Controller
@RequestMapping(value = "/hello")
public class HelloController {


    @RequestMapping(value = "1")
    @ResponseBody
    public Result hello() {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("user", "user");
        map.put("token", "token");
        return new Result().success(map);
    }
}
